<template>
  <div class="wapper">
  <swiper :options="swiperOption">
    <!-- slides -->
      <swiper-slide v-for="item of swiperList" :key="item.id"><img class="swiper-img" :src="item.imgUrl"/></swiper-slide>
      <!-- Optional controls -->
      <div class="swiper-pagination"  slot="pagination"></div>
  <!--    <div class="swiper-button-prev" slot="button-prev"></div>-->
  <!--    <div class="swiper-button-next" slot="button-next"></div>-->
  <!--    <div class="swiper-scrollbar"   slot="scrollbar"></div>-->
    </swiper>
  </div>
</template>
<script>
export default {
  name: 'HomeSwiper',
  data() {
    return {
      swiperOption: {
        pagination: '.swiper-pagination',
        loop: true
      },
      swiperList: [
        {
          id: '00001',
          imgUrl: 'http://mp-piao-admincp.qunarzz.com/mp_piao_admin_mp_piao_admin/admin/20198/85ead20d8a1140ed4882a6a192cd22db.jpg_750x200_2baa2269.jpg'
        },
        {
          id: '00002',
          imgUrl: 'http://mp-piao-admincp.qunarzz.com/mp_piao_admin_mp_piao_admin/admin/20198/c1dc49b4e28c3f7b3b1fa8d8c64b4bfc.jpg_750x200_8f2bf534.jpg'
        }
      ]
    }
  }
}
</script>
<style lang="stylus" scoped>
  .wapper
    overflow: hidden
    width: 100%
    height: 0
    padding-bottom:27%
    background: #ccc
    .swiper-img
      width: 100%
</style>
